const express = require('express')

const router = express.Router()

// 引入子模块
const user = require('./admin/user')
const nav = require('./admin/nav')
const login = require('./admin/login')

router.get('/', (req, res) => {
  res.send('后台管理中心')
})

// 挂在路由
router.use('/user', user)
router.use('/login', login)
router.use('/nav', nav)

module.exports = router